<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="http://localhost:8880/tamsys/">
    <title>信息</title>
  </head>
  
  <body>
  
    <form action="info!query" method="post">
    	关&nbsp;键&nbsp;字&nbsp;<input type="text" name="keyWord" value="$!keyWord"><br>
    	开始时间&nbsp;<input type="text" name="startTime"><br>
    	结束时间&nbsp;<input type="text" name="endTime"><br>
    	<input type="submit" value="搜索信息">
    </form>
    
    #if($listPage.getEntityAmount()!=0)
    		<hr>
			<h3>检索结果</h3>
			
			<!-- 前面的页面输出 -->
			第 $pageNO 页 &nbsp;&nbsp; 共 $listPage.pageAmount 页
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			共检索到 $listPage.getEntityAmount() 条记录
			
			<!-- 热点列表的输出 -->
			#foreach ($subInfo in $listPage.entitys)
				<p>
					<a href="http://$subInfo.urlName" terget="_blank">$!subInfo.urlTopic</a> - $shortFormat.format($subInfo.pageTime)
				</p> 
				<p>
					$subInfo.summary
				</p>
				<p>
					<span>人物: </span>
					#set($t=0)
					#foreach ($p in $subInfo.personEntitys)
						#if($t > 0)
							、
						#end
						$p
						#set($t=$t+1)
					#end
				</p>
			#end
			
			<!-- 页面分页的输出 -->
			#set ($key=$keyWord)
			#if($pageNO>1)
				<a href="hot!query?pageNO=1&pageSize=$listPage.pageSize&keyWord=$key">首页</a>	
				<a href="hot!query?pageNO=$pageNO-1&pageSize=$listPage.pageSize&keyWord=$key">上一页</a>		
			#end
			#set ($begin=$pageNO-1/10*10+1)
			#set ($end=$begin+9)
			#if($end>$page.pageAmount)
				#set ($end=$page.pageAmount)
			#end
			#foreach($pn in [$begin..$end])
				<a href="hot!query?pageNO=$pn&pageSize=$listPage.pageSize&keyWord=$key" 
				#if($pn==$pageNO)
					class="number current"
				#end
				#if($pn!=$pageNO)	
					class="number"
				#end
				>$pn</a>
			#end
			#set ($k=$pageNO+1)	
			#if($listPage.pageAmount>=$k)
				<a href="hot!query?pageNO=$!k&pageSize=$listPage.pageSize&keyWord=$key">下一页</a>	
				<a href="hot!query?pageNO=$listPage.pageAmount&pageSize=$listPage.pageSize&keyWord=$key">末页</a>			
			#end
			
			
			
	#end
	    
    
  </body>
</html>



